import 'package:kkhousekeep/generated/json/base/json_convert_content.dart';
import 'package:kkhousekeep/models/home_add_visitor_record_entity.dart';

HomeAddVisitorRecordEntity $HomeAddVisitorRecordEntityFromJson(Map<String, dynamic> json) {
	final HomeAddVisitorRecordEntity homeAddVisitorRecordEntity = HomeAddVisitorRecordEntity();
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		homeAddVisitorRecordEntity.code = code;
	}
	final HomeAddVisitorRecordObj? obj = jsonConvert.convert<HomeAddVisitorRecordObj>(json['obj']);
	if (obj != null) {
		homeAddVisitorRecordEntity.obj = obj;
	}
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		homeAddVisitorRecordEntity.msg = msg;
	}
	return homeAddVisitorRecordEntity;
}

Map<String, dynamic> $HomeAddVisitorRecordEntityToJson(HomeAddVisitorRecordEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['code'] = entity.code;
	data['obj'] = entity.obj.toJson();
	data['msg'] = entity.msg;
	return data;
}

HomeAddVisitorRecordObj $HomeAddVisitorRecordObjFromJson(Map<String, dynamic> json) {
	final HomeAddVisitorRecordObj homeAddVisitorRecordObj = HomeAddVisitorRecordObj();
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		homeAddVisitorRecordObj.id = id;
	}
	return homeAddVisitorRecordObj;
}

Map<String, dynamic> $HomeAddVisitorRecordObjToJson(HomeAddVisitorRecordObj entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	return data;
}